package com.lechi.web.system.service.impl;

import com.lechi.web.system.domain.SysRoleDevice;
import com.lechi.web.system.mapper.SysRoleDeviceMapper;
import com.lechi.web.system.service.ISysRoleDeviceService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部门管理 服务实现
 *
 * @author yg
 */
@Service
@RequiredArgsConstructor
public class SysRoleDeviceServiceImpl implements ISysRoleDeviceService {

    private final SysRoleDeviceMapper sysRoleDeviceMapper;


    @Override
    public void deleteRoleDeviceByRoleId(Long roleId) {
        sysRoleDeviceMapper.deleteRoleDeviceByRoleId(roleId);
    }

    @Override
    public void deleteRoleDevice(Long[] ids) {
        sysRoleDeviceMapper.deleteRoleDevice(ids);
    }

    @Override
    public int batchRoleDevice(List<SysRoleDevice> roleDevicetList) {
        return sysRoleDeviceMapper.batchRoleDevice(roleDevicetList);
    }
}
